<!-- 启用优惠券 -->
<template>
	<div class=''>
		<el-dialog title="提示" center="" :visible.sync="startAlert" width="30%" :show-close='false'>
			<div style="text-align: center;">确认要{{type==0?'停':'启'}}用{{name}}吗?</div>
			<div style="text-align: center;" v-if="type==0">
				<div>1.已停用的优惠券不会再一体机展示</div>
				<div>2.不影响已领取的优惠券</div>
			</div>
			<span slot="footer" class="dialog-footer">
				<el-button @click="startClose">取 消</el-button>
				<el-button type="primary" @click="startConfirm">确 定</el-button>
			</span>
		</el-dialog>
	</div>
</template>

<script>
	export default {
		props:{
			startAlert:Boolean,
			name:String,
			type:Number
		},
		data () {
			return {

			};
		},
		methods: {
			startClose(){
				this.$emit('startClose')
			},
			/**
			 * 确定
			 */
			startConfirm(){},
		},
created() {}, //生命周期 - 创建之后
	}
</script>

<style scoped>
/deep/ .el-dialog__header{
	background:#169bd5!important
}
/deep/ .el-dialog{
	border-radius: 24px;
}
</style>